package com.nnnu.wsnackshop.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import lombok.Data;

@Data
public class CommonPage {
    @Schema(description = "页码，默认 1", example = "1")
    @Min(1)
    private Integer pageNum = 1;
    @Schema(description = "每页大小，默认 10", example = "10")
    @Min(1)
    @Max(100)
    private Integer pageSize = 10;
}
